raar.compiler
Class RACompilerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byraar.exceptions.RAException
              extended byraar.compiler.RACompilerException
All Implemented Interfaces:
java.io.Serializable

public class RACompilerException
extends RAException

Exception thrown by the various methods of the Compiler. Internally catched and converted to an RAException. However the extra code fragment option enables the compiler to give a more specific error message, especially the line of code in which the error occured.

See Also:
Serialized Form

Constructor Summary
RACompilerException(java.lang.String e, java.lang.String codeFragment, int lineOfError)
           
 
Method Summary
 java.lang.String getCodeFragment()
           
 int getLineOfError()
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RACompilerException

public RACompilerException(java.lang.String e,
                           java.lang.String codeFragment,
                           int lineOfError)
Method Detail

getCodeFragment

public java.lang.String getCodeFragment()

getLineOfError

public int getLineOfError()

getMessage

public java.lang.String getMessage()